export const lmapConfig = {
  url: 'https://google.intelirri.com/google/?x={x}&y={y}&z={z}',
  center: [39.460456, 115.8512914],
  zoom: 16,
}

export const bloodSources = [
  {
    label: '自采',
    value: 1,
  },
  {
    label: '自体',
    value: 2,
  },
  {
    label: '互助',
    value: 3,
  },
  {
    label: '血站',
    value: 4,
  },
  {
    label: '307',
    value: 5,
  },
  {
    label: '通站',
    value: 6,
  },
  {
    label: '980',
    value: 7,
  },
  {
    label: '北总',
    value: 8,
  },
  {
    label: '合并',
    value: 9,
  },
  {
    label: '88',
    value: 10,
  },
  {
    label: '西京',
    value: 11,
  },
  {
    label: '西南',
    value: 12,
  },
  {
    label: '特需',
    value: 13,
  },
  {
    label: '和平',
    value: 14,
  },
  {
    label: '153',
    value: 15,
  },
  {
    label: '303',
    value: 16,
  },
  {
    label: '988',
    value: 17,
  },
  {
    label: '985',
    value: 18,
  },
  {
    label: '三中',
    value: 19,
  },
  {
    label: '302',
    value: 20,
  },
]

export const matchTypes = [
  {
    label: '红细胞配血',
    value: 1,
  },
  {
    label: '血小板配血',
    value: 2,
  },
]

export const matchTypesDetail = [
  {
    label: '1卡式配血',
    value: 1,
  },
  {
    label: '2聚凝胺',
    value: 2,
  },
  {
    label: '3木瓜酶',
    value: 3,
  },
  {
    label: '4血小板',
    value: 4,
  },
]

export const bloodGroups = [
  'A',
  'B',
  'AB',
  'O',
  'A亚',
  'B亚',
  'A亚B',
  'AB亚',
  '基因型',
]

export const bloodGroupsFilter = ['A', 'B', 'AB', 'O']

export const bloodRhds = ['+', '-', 'D变异型', '基因型']

export const bloodSops = ['阴性', '阳性']

export const bloodRhFxs = [
  'CCEE',
  'CCEe',
  'CCee',
  'CcEE',
  'CcEe',
  'Ccee',
  'ccEE',
  'ccEe',
  'ccee',
]

export const bloodMatchCategories = [
  { value: 1, label: '同型配血' },
  { value: 2, label: '异型配血' },
]

export const bloodMatchResult = {
  1: '相合',
  2: '不相合',
  // 3: '相容',
}

export const bloodMatch = ['无凝集', '凝集']

export const patientAttrs = [
  { name: 'PATIENT_ID', label: 'ID号', class: 'font20' },
  { name: 'patient_no', label: '门诊号', class: 'font20' },
  { name: 'PAT_NAME', label: '受血者', class: 'font20 color-danger' },
  { name: 'PAT_SEX', label: '性别' },
  { name: 'AGE', label: '年龄', class: 'font20' },
  { name: 'DEPT_NAME', label: '病房' },
  { name: 'PAT_BLOOD_GROUP', label: '初检血型' },
  { name: 'RH', label: '初检RHD' },
  { name: 'RECHECK_BLOOD_GROUP', label: '复检血型' },
  { name: 'RECHECK_RH', label: '复检RHD' },
  { name: 'INP_NO', label: '住院号' },
  { name: 'BLOOD_PURPOSE', label: '输血目的' },
  { name: 'DOCTOR', label: '经治医生' },
  { name: 'REPORT_ITEM_NAME', label: '抗筛' },
  { name: 'BLOOD_DIAGNOSE', label: '诊断' },
  { name: 'FEE_TYPE', label: '费别' },
  { name: 'CYESIS', label: '孕（次）' },
  { name: 'BIRTH_TO', label: '产（次）' },
  { name: 'BLOOD_TABOO', label: '输血不良反应' },
  { name: 'BLOOD_OUT_HISTORY', label: '外院输血史' },
  { name: 'HISTORY_APPLY_NUM', label: '旧标本号', class: 'font20' },
  { name: 'HISTORY_BLOOD_GROUP', label: '旧标本血型' },
  { name: 'HISTORY_RH', label: '旧标本RHD' },
  { name: 'APPLY_DATE', label: '申请日期' },
]

export const doctors = [
  { name: 'DOCTOR', label: '军医' },
  { name: 'DIRECTOR', label: '科主任' },
  { name: 'PHYSICIAN', label: '主治军医' },
]

export const fastSlowMap = {
  1: '手术',
  2: '治疗/计划',
  3: '备血',
  0: '急诊',
}

export const bloodPurposeList = [
  { label: '急诊治疗', value: 1 },
  { label: '急诊手术', value: 2 },
  { label: '择期手术', value: 3 },
  { label: '术中超量', value: 4 },
  { label: '术后治疗', value: 5 },
  { label: '内科治疗', value: 6 },
  { label: '外科治疗', value: 7 },
  { label: '备血', value: 8 },
  { label: '血浆置换', value: 9 },
]

export const bloodApplyStatus = {
  0: {
    name: '待审核',
    order: 1,
    class: 'color-info',
  },
  1: {
    name: '通过',
    order: 2,
    class: 'color-success',
  },
  '-1': {
    name: '拒绝',
    order: 3,
    class: 'color-danger',
  },
  2: {
    name: '已接收',
    order: 4,
    class: 'color-primary',
  },
  3: {
    name: '取血申请审核中',
    order: 5,
    class: 'color-info',
  },
  31: {
    name: '取血审核通过',
    order: 6,
    class: 'color-success',
  },
  32: {
    name: '取血审核拒绝',
    order: 7,
    class: 'color-danger',
  },
  4: {
    name: '配血中',
    order: 8,
    class: 'color-warning',
  },
  41: {
    name: '配血完成',
    order: 9,
    class: 'color-success',
  },
  42: {
    name: '配血作废',
    order: 10,
    class: 'color-danger',
  },
  5: {
    name: '已发血',
    order: 11,
    class: 'color-success',
  },
  61: {
    name: '输血开始',
    order: 12,
    class: 'color-success',
  },
  62: {
    name: '输血结束',
    order: 13,
    class: 'color-success',
  },
  7: {
    name: '血袋已处理',
    order: 14,
    class: 'color-success',
  },
  8: {
    name: '疗效已评价',
    order: 15,
    class: 'color-success',
  },
}

export const bloodMatchSideOptions = [
  {
    value: '无凝集',
    label: '无凝集',
  },
  {
    value: '+/-',
    label: '+/-',
  },
  {
    value: '1+',
    label: '1+',
  },
  {
    value: '2+',
    label: '2+',
  },
  {
    value: '3+',
    label: '3+',
  },
  {
    value: '4+',
    label: '4+',
  },
  {
    value: '溶血',
    label: '溶血',
  },
]

export const bloodMatchSideOptionsXxb = [
  {
    value: '阴性',
    label: '阴性',
  },
  {
    value: '+/-',
    label: '+/-',
  },
  {
    value: '1+',
    label: '1+',
  },
  {
    value: '2+',
    label: '2+',
  },
  {
    value: '3+',
    label: '3+',
  },
  {
    value: '4+',
    label: '4+',
  },
]

export const bloodMatchSideOptionsBak = [
  {
    value: '无凝集',
    label: '无凝集',
  },
  {
    value: '凝集',
    label: '凝集',
    children: [
      {
        value: '+/-',
        label: '+/-',
      },
      {
        value: '1+',
        label: '1+',
      },
      {
        value: '2+',
        label: '2+',
      },
      {
        value: '3+',
        label: '3+',
      },
      {
        value: '4+',
        label: '4+',
      },
      {
        value: '溶血',
        label: '溶血',
      },
    ],
  },
]

export const bloodResults = ['-', '+/-', '1+', '2+', '3+', '4+']

export const machines = [
  { code: 'wadiana', name: '戴安娜' },
  { code: 'IH1000', name: 'IH 1000' },
  { code: 'vision', name: '强生' },
  { code: 'bioxun', name: '博迅' },
  { code: 'baso', name: '贝索' },
]

export const bloodDetail = {
  jxz: [
    {
      namekey: 'BLOOD_DONOR_ID',
      name: '血员号',
      column: 1,
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
      default: '--',
    },
    { namekey: 'a', name: '献血者', column: 1, default: '--' },
    { namekey: 'BLOOD_DATE', name: '身份确认', column: 1, default: '--' },
    { namekey: 'a', name: '性别', column: 1, default: '--' },
    { namekey: 'a', name: '出生', column: 1, default: '--' },
    { namekey: 'a', name: '工作单位', column: 1, default: '--' },
    { namekey: 'a', name: '证件号码', column: 1, default: '--' },
  ],
  xy: [
    {
      namekey: 'BLOOD_ID',
      name: '储血号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'BLOOD_ID_UP',
      name: '配血试管号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    { namekey: 'BLOOD_ID_QX', name: '全血号', column: 1, default: '--' },
    { namekey: 'BLOOD_CAPACITY', name: '血量', column: 1, default: '--' },
    {
      namekey: 'BLOOD_GROUP',
      name: '血型',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'RH',
      name: 'Rh(D)',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'BLOOD_TYPE_NAME',
      name: '血液成分',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    { namekey: 'BLOOD_SOURCE', name: '血源', column: 1, default: '--' },
    { namekey: 'INVAL_DATE', name: '失效日', column: 1, default: '--' },
    { namekey: 'BLOOD_OUT_ID', name: '原始血袋号', column: 1, default: '--' },
    { namekey: 'GATHER_NAME', name: '采血者', column: 1, default: '--' },
    { namekey: 'BLOOD_GATHER_DATE', name: '采血日', column: 1, default: '--' },
    { namekey: 'BLOOD_IN_OPER', name: '入库者', column: 1, default: '--' },
    { namekey: 'a', name: '出库者', column: 1, default: '--' },
    {
      namekey: 'BLOOD_OUT_NUM',
      name: '发血单号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    { namekey: 'DIVIDER', name: '分离者', column: 1, default: '--' },
    { namekey: 'BLOOD_DIVIDE_DATE', name: '分离日', column: 1, default: '--' },
    { namekey: 'BLOOD_IN_DATE', name: '入库日', column: 1, default: '--' },
    { namekey: 'BLOOD_OUT_DATE', name: '出库日', column: 1, default: '--' },
    { namekey: 'BLOOD_OUT_STATUS', name: '出库状态', column: 1, default: '--' },
  ],
  px: [
    {
      namekey: 'MATCH_SHEET_NUM',
      name: '配血单号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    { namekey: 'a', name: '配血方法', column: 1, default: '--' },
    { namekey: 'a', name: '结果', column: 1, default: '--' },
    { namekey: 'a', name: '配血日期', column: 1, default: '--' },
    { namekey: 'APPLY_PAT_NAME', name: '受血者', column: 1, default: '--' },
    {
      namekey: 'APPLY_NUM',
      name: '申请单号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    { namekey: 'APPLY_PATIENT_ID', name: 'ID号', column: 1, default: '--' },
    { namekey: 'APPLY_DEPT_NAME', name: '开单科室', column: 1, default: '--' },
    { namekey: 'a', name: '停止日期', column: 1, default: '--' },
  ],
  sxz: [
    { namekey: 'APPLY_PAT_NAME', name: '受血者', column: 1, default: '--' },
    { namekey: 'a', name: '出生', column: 1, default: '--' },
    { namekey: 'a', name: '性别', column: 1, default: '--' },
    { namekey: 'a', name: '费别', column: 1, default: '--' },
    {
      namekey: 'APPLY_BLOOD_GROUP',
      name: '血型',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'APPLY_RH',
      name: 'RH血型',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'APPLY_NUM',
      name: '用血申请单号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'APPLY_PATIENT_ID',
      name: 'ID号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    {
      namekey: 'APPLY_INP_NO',
      name: '住院号',
      column: 1,
      default: '--',
      bold: true,
      fontsize: '16px',
      color: '#f56c6c',
    },
    { namekey: 'APPLY_DEPT_NAME', name: '申请科室', column: 1, default: '--' },
    {
      namekey: 'APPLY_BLOOD_DIAGNOSE',
      name: '临床诊断',
      column: 1,
      default: '--',
    },
    { namekey: 'a', name: '输血禁忌症', column: 1, default: '--' },
    { namekey: 'a', name: '申请医师', column: 1, default: '--' },
    { namekey: 'a', name: '申请填写时间', column: 1, default: '--' },
  ],
}

export const bloodAttrs = [
  {
    name: '血液信息',
    data: [
      { name: '血袋号', namekey: 'id' },
      { name: '血液成分', namekey: 'product' },
      { name: '血型', namekey: 'abo' },
      { name: 'Rh(D)', namekey: 'rhd' },
      { name: '血量', namekey: 'capacity' },
      { name: '血源', namekey: 'source' },
      { name: '采血时间', namekey: 'collect_time_date' },
      { name: '失效时间', namekey: 'invalid_time_date' },
      { name: '血员号', namekey: 'donor_id' },
      { name: '配血试管号', namekey: 'tube_number' },
      { name: '来源', namekey: 'from_id' },
    ],
  },
  {
    name: '其它信息',
    data: [
      { name: '申请科室', namekey: 'dept_name' },
      { name: '申请医生', namekey: 'apply_user' },
      { name: '申请单号', namekey: 'apply_num' },
      { name: '配血单号', namekey: 'match_num' },
      { name: '发血单号', namekey: 'letting_num' },
      { name: '发血者', namekey: 'letting_user' },
      { name: '发血时间', namekey: 'letting_at' },
    ],
  },
]

export const bloodFroms = [
  {
    name: '三中心（武警）',
    value: 1,
  },
  {
    name: '四中心（304）',
    value: 2,
  },
  {
    name: '五中心（302）',
    value: 3,
  },
  {
    name: '五中心（307）',
    value: 4,
  },
  {
    name: '六中心（海总）',
    value: 5,
  },
  {
    name: '七中心（陆总）',
    value: 6,
  },
  {
    name: '八中心（309）',
    value: 7,
  },
]

export const bloodGroupRhdCodelength = 4
export const bloodComponentCodeLength = 8
export const bloodInvalidTimeCodeLength = 10
export const bloodSerialnoLength = 14
export const bloodFullSerialnoLength = 17

export const bloodGroupsDict = {
  '0600': {
    group: 'A',
    rhd: '阴性',
  },
  6600: {
    group: 'A',
    rhd: '阳性',
  },
  6200: {
    group: 'A',
    rhd: '阳性',
  },
  2800: {
    group: 'AB',
    rhd: '阴性',
  },
  8800: {
    group: 'AB',
    rhd: '阳性',
  },
  8400: {
    group: 'AB',
    rhd: '阳性',
  },
  7700: {
    group: 'B',
    rhd: '阳性',
  },
  7300: {
    group: 'B',
    rhd: '阳性',
  },
  1700: {
    group: 'B',
    rhd: '阴性',
  },
  9500: {
    group: 'O',
    rhd: '阴性',
  },
  5500: {
    group: 'O',
    rhd: '阳性',
  },
  5100: {
    group: 'O',
    rhd: '阳性',
  },
}

export const printData = {
  printer: '',
  pdfFilePath: 'C:/YGS/myPdf.pdf',
}

export const saveData = {
  folder_name: 'YGS',
  pdfFilePath: 'http://api.zesi.com.cn/storage/pdfs/1.pdf',
  path: 'C:/',
  pdf_name: 'myPdf.pdf',
}

export const delData = {
  pdfFilePath: 'C:/YGS/myPdf.pdf',
}
